package cn.zhz.controller;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class WelcomeController {
    private Logger logger=Logger.getLogger(WelcomeController.class);
    @RequestMapping("/welcome")
    public String index(){
        logger.info("学框架就学Spring MVC.welcome");
        return "welcome";
    }
}
